package com.example.dto.business;

import com.example.pojo.Pet;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author LeXin Huang
 * @date 2021年04月22日 8:30
 */
@Data
@NoArgsConstructor
public class PetBriefInfoBusinessDTO {
    Integer petId;

    String petPortraitPath;

    String petName;

    String petBreed;

    Boolean overt;

    public PetBriefInfoBusinessDTO(Pet pet) {
        this.petId = pet.getId();
        this.petPortraitPath = pet.getPortraitPath();
        this.petName = pet.getName();
        this.petBreed = pet.getBreed();
        this.overt = pet.getOvert();
    }
}
